package com.example.supplychainbackend.dao.sales;

import com.example.supplychainbackend.entity.sales.ContractEntity;
import com.example.supplychainbackend.entity.sales.CustomerEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ContractDao extends JpaRepository<ContractEntity, String> {
    ContractEntity findByContractNumber(String contractNumber);
    Long deleteByContractNumber(String contractNumber);
    List<ContractEntity> findAllByEnterpriseId(String enterpriseId);
}